<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
	        <li class="active"><a href="#A" data-toggle="tab">添加微信菜单</a></li>
	    </ul>
		<form class="form-horizontal js-ajax-form" action="{:U('Menu/add_post')}" method="post">
			<div class="tabbable">
		        <div class="tab-content">
		          <div class="tab-pane active" id="A">
            <fieldset>
                <div class="control-group">
                    <label class="control-label">上级</label>
                    <div class="controls">
                        <select name="parentid">
                            <option value="0">一级菜单</option>
                            {$nav_trees}
                        </select>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">菜单名称</label>
                    <div class="controls">
                        <input type="text" name="menu_name" value=""><span class="form-required">* 一级菜单不超过4个字符,二级不超过7个字符</span>
                    </div>
                </div><div class="control-group">
                <label class="control-label">事件类型</label>
                <div class="controls">
                    <select name="event_type" id="event_type">
                        <option value="click">1.click-点击推事件</option>
                        <option value="view">2.view-跳转URL</option>
                        <option value="scancode_push">3.scancode_push-扫码推事件c</option>
                        <option value="scancode_waitmsg">4.scancode_waitmsg-扫码消息接收中</option>
                        <option value="pic_sysphoto">5.pic_sysphoto-弹出系统拍照</option>
                        <option value="pic_photo_or_album">6.pic_photo_or_album-弹出拍照或者相册</option>
                        <option value="pic_weixin">7.pic_weixin-弹出微信相册发图器</option>
                        <option value="location_select">8.location_select-地理位置选择</option>
                        <option value="media_id">9.media_id</option>
                        <option value="view_limited">10.view_limited</option>
                    </select><span class="form-required">*</span>
                </div>
            </div>
                <div class="control-group">
                <label class="control-label">事件属性</label>
                <div class="controls">
                    <input type="text" name="type_string" id="type_string"><span class="form-required">*</span>
                </div>
            </div>
                <div class="control-group">
                <label class="control-label">状态:</label>
                <div class="controls">
                    <select name="status" id="status">
                        <option value="1">显示</option>
                        <option value="0">隐藏</option>
                    </select>
                </div>
            </div>
                <div class="control-group">
                    <label class="control-label">排序:</label>
                    <div class="controls"><input type="text" name="listorder" id="">
                    </div>
                </div>
            </fieldset>
		          </div>
		        </div>
		    </div>
		    <div class="form-actions">
		     	<button class="btn btn-primary js-ajax-submit"type="submit">{:L('ADD')}</button>
		      	<a class="btn" href="{:U('Menu/index')}">{:L('BACK')}</a>
		    </div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>